<?php
namespace App\Boot\Listener;

use Swoft\Bean\Annotation\ServerListener;
use Swoft\Bootstrap\Listeners\Interfaces\StartInterface;
use Swoft\Bootstrap\SwooleEvent;
use Swoole\Server;

/**
 * Class TestStartListener
 * @package App\Boot\Listener
 * @ServerListener(event=SwooleEvent::ON_START)
 */
class MyServerListener implements StartInterface
{
    /**
     * @var Server $server
     * */
    public function onStart(Server $server)
    {
        \output()->writeln('TestStartListener');
        var_dump('TestStartListener');
    }
}